package com.mlk.repair.po;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author trekxu
 * @since 2019-07-12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EngRepairTicketItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 报备表id
     */
    private String ticketId;
    /**
     * 唯一标识码
     */
    private String uniCode;
    /**
     * 品牌名称
     */
    @NotBlank(message = "品牌名称不能为空")
    private String branch;
    /**
     * 型号名称
     */
    @NotBlank(message = "型号不能为空")
    private String param;
    /**
     * 数量
     */
    @NotNull(message = "数量不能为空")
    private Integer num;
    /**
     * 单位信息
     */
    @NotBlank(message = "单位信息为必选")
    private String unit;
    /**
     * 故障类型
     */
    @NotBlank(message = "故障类型为必选")
    private String remark;

}
